<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	$model = new ProductCustomer;
	$data = $model->checkExists(2, 1);
    return $data;
});

Route::group(array('prefix' => 'admin'), function(){
	Route::controller('home', 'AdminHomeController');
	Route::controller('user', 'AdminUserController');
	Route::controller('brand', 'AdminBrandController');
	Route::controller('type', 'AdminTypeController');
	Route::controller('product', 'AdminProductController');
	Route::controller('customer', 'AdminCustomerController');
	Route::controller('supplier', 'AdminSupplierController');
	Route::controller('product-customer', 'AdminProductCustomerController');
	Route::controller('product-include', 'AdminProductIncludeController');
	Route::controller('order', 'AdminOrderController');
	Route::controller('export', 'AdminExportController');
	Route::controller('total', 'AdminTotalController');
	Route::controller('refund', 'AdminRefundController');
});